import request from "@/utils/request";

/**
 * 获取商品列表信息
 * @param params
 * @returns
 */
export function getgoodsList(data) {
  return request({
    url: '/management/goods.goods/getList',
    method: 'post',
    data
  })
}
/**
 * 查询一条商品信息
 * @param params
 * @returns
 */
export function getgoodsFind(data) {
  return request({
    url: '/management/goods.goods/getFind',
    method: 'post',
    data
  })
}

/**
 * 添加商品信息
 * @param params
 * @returns
 */
export function addgoods(data) {
  return request({
    url: '/management/goods.goods/add',
    method: 'post',
    data
  })
}

/**
 * 修改商品信息
 * @param params
 * @returns
 */
export function updategoods(data) {
  return request({
    url: '/management/goods.goods/update',
    method: 'post',
    data
  })
}

/**
 * 根据条件批量修改设备商品信息
 * @param params
 * @returns
 */
export function updateMoreByGid(data) {
  return request({
    url: '/management/machine.machine_goods/updateMoreByWhere',
    method: 'post',
    data
  })
}

/**
 * 删除商品信息
 * @param params
 * @returns
 */
export function delgoods(data) {
  return request({
    url: '/management/goods.goods/del',
    method: 'post',
    data
  })
}

/**
 * 查询商品多语言信息列表
 * @param params
 * @returns
 */
export function getgoodslang(data) {
  return request({
    url: '/management/goods.goods_lang/getList',
    method: 'post',
    data
  })
}

/**
 * 添加商品多语言信息
 * @param params
 * @returns
 */
export function addgoodslang(data) {
  return request({
    url: '/management/goods.goods_lang/add',
    method: 'post',
    data
  })
}

/**
 * 修改商品多语言信息
 * @param params
 * @returns
 */
export function updategoodslang(data) {
  return request({
    url: '/management/goods.goods_lang/update',
    method: 'post',
    data
  })
}

/**
 * 删除商品多语言信息
 * @param params
 * @returns
 */
export function delgoodslang(data) {
  return request({
    url: '/management/goods.goods_lang/del',
    method: 'post',
    data
  })
}

/**
 * 导入商品列表
 * @param params
 * @returns
 */
export function importgoodsExcel(data) {
  return request({
    url: '/management/goods.goods/importExcel',
    method: 'post',
    data
  })
}

/**
 * 导出商品列表
 * @param params
 * @returns
 */
export function exportgoodsExcel(data) {
  return request({
    url: '/management/goods.goods/exportExcel',
    method: 'post',
    data
  })
}

/**
 * 获取商品分类
 * @param params
 * @returns
 */
export function getListcategory(data) {
  return request({
    url: '/management/goods.goods_category/getList',
    method: 'post',
    data
  })
}

/**
 * 添加商品分类
 * @param params
 * @returns
 */
export function addcategory(data) {
  return request({
    url: '/management/goods.goods_category/add',
    method: 'post',
    data
  })
}

/**
 * 修改商品分类
 * @param params
 * @returns
 */
export function updatecategory(data) {
  return request({
    url: '/management/goods.goods_category/update',
    method: 'post',
    data
  })
}

/**
 * 删除商品分类
 * @param params
 * @returns
 */
export function delcategory(data) {
  return request({
    url: '/management/goods.goods_category/del',
    method: 'post',
    data
  })
}

/**
 * 获取商品分类语言
 * @param params
 * @returns
 */
export function getListcategorylang(data) {
  return request({
    url: '/management/goods.goods_category_lang/getList',
    method: 'post',
    data
  })
}

/**
 * 添加商品分类语言
 * @param params
 * @returns
 */
export function addcatogorylang(data) {
  return request({
    url: '/management/goods.goods_category_lang/add',
    method: 'post',
    data
  })
}

/**
 * 修改商品分类语言
 * @param params
 * @returns
 */
export function updatecatogorylang(data) {
  return request({
    url: '/management/goods.goods_category_lang/update',
    method: 'post',
    data
  })
}

/**
 * 删除商品分类语言
 * @param params
 * @returns
 */
export function delcatogorylang(data) {
  return request({
    url: '/management/goods.goods_category_lang/del',
    method: 'post',
    data
  })
}

/**
 * 获取商品角标列表
 * @param params
 * @returns
 */
export function getcornerList(data) {
  return request({
    url: '/management/goods.goods_corner/getList',
    method: 'post',
    data
  })
}

/**
 * 获取单条商品角标列表
 * @param params
 * @returns
 */
export function getFindcornerList(data) {
  return request({
    url: '/management/goods.goods_corner/getFind',
    method: 'post',
    data
  })
}

/**
 * 添加商品角标
 * @param params
 * @returns
 */
export function addcornerList(data) {
  return request({
    url: '/management/goods.goods_corner/add',
    method: 'post',
    data
  })
}

/**
 * 修改商品角标
 * @param params
 * @returns
 */
export function updatecornerList(data) {
  return request({
    url: '/management/goods.goods_corner/update',
    method: 'post',
    data
  })
}

/**
 * 删除商品角标
 * @param params
 * @returns
 */
export function delcornerList(data) {
  return request({
    url: '/management/goods.goods_corner/del',
    method: 'post',
    data
  })
}

/**
 * 下架商品角标
 * @param params
 * @returns
 */
export function takecornerDown(data) {
  return request({
    url: '/management/goods.goods_corner/takeDown',
    method: 'post',
    data
  })
}
/**
 * 查询商品多语言信息列表
 * @param params
 * @returns
 */
export function goods_lang(data) {
  return request({
    url: '/management/goods.goods_lang/getList',
    method: 'post',
    data
  })
}
/**
 * 修改商品多语言信息
 * @param params
 * @returns
 */
export function updategoods_lang(data) {
  return request({
    url: '/management/goods.goods_lang/update',
    method: 'post',
    data
  })
}
/**
 * 添加商品多语言信息
 * @param params
 * @returns
 */
export function addgoods_lang(data) {
  return request({
    url: '/management/goods.goods_lang/add',
    method: 'post',
    data
  })
}
/**
 * 删除商品多语言信息
 * @param params
 * @returns
 */
export function delgoods_lang(data) {
  return request({
    url: '/management/goods.goods_lang/del',
    method: 'post',
    data
  })
}